using System;
using UnityEngine;

public class PanelClick : MonoBehaviour
{
    private void Awake()
    {
        EventCenter.ClickEvent.ButtonClickEvent += ButtonEventOne;
        EventCenter.ClickEvent.ButtonClickEvent += ButtonEventTwo;
    }

    public void OnClick()
    {
        Debug.Log("PanelClick OnClick");
        EventCenter.ClickEvent.RaiseButtonClick();
    }

    private void ButtonEventOne()
    {
        Debug.Log("ButtonEventOne");
    }

    private void ButtonEventTwo()
    {
        Debug.Log("ButtonEventTwo");
    }
}
